package xian.woniu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import xian.woniu.entity.Appointment;
import xian.woniu.util.ResultVO;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

/**
 * @author bo
 * @time 2022/07/07 21:51:54
 */
@FeignClient("sun-doctor")
public interface IDoctorService {
    @PostMapping("doctor/getDoctorByDids")
    ResultVO getDoctorByUids(@RequestBody Map map);
    @PostMapping("/appointment/update")
    ResultVO update(@RequestBody Appointment appointment);
    @GetMapping("doctor/findOne/{did}")
    ResultVO findOne(@PathVariable(value = "did") String did);
}
